package com.ss.android.common.load;

import com.bytedance.common.utility.collection.a;

import java.util.Set;
import java.util.WeakHashMap;

final class MNode<K, T, E, V, R> extends AbsNode<K, T, E, V, R, Set<V>, MNode<K, T, E, V, R>> {
    private Set<V> objs = new a(new WeakHashMap());

    final void bindObj(V v) {
        if (v != null) {
            this.objs.add(v);
        }
    }

    final boolean isEmpty() {
        return this.objs.isEmpty();
    }

    final void clearObj() {
        this.objs.clear();
    }

    final void unbindObj(V v) {
        if (v != null) {
            this.objs.remove(v);
        }
    }

    final Set<V> getObj() {
        return this.objs;
    }
}

